package cn.wolfcode.wolf2w.service;

import cn.wolfcode.wolf2w.domain.Destination;
import cn.wolfcode.wolf2w.domain.Region;
import cn.wolfcode.wolf2w.query.DestinationObject;
import cn.wolfcode.wolf2w.query.RegionObject;
import org.springframework.data.domain.Page;

import java.util.List;

public interface IDestinationService {
    void update(Destination destination);

    void save(Destination destination);

    void delete(String id);

    Destination get(String id);

    List<Destination> list();

    List<Destination> getDestByRegionId(String id);

    Page<Destination> query(DestinationObject qo);

    void saveOrUpdate(Destination destination);

    List<Destination> queryToasts(String parentId);

    List<Destination> getDestByRegionIdForapi(String regionId);

    List<Destination> getDestByDeep(int deep);

    void updateForinfo(String id, String info);

    String getByName(String keyword);

    Destination queryName(String keyword);
}
